for lang in `ls locale`; do 
  XGETTEXT="xgettext -L python --from-code=utf-8 -p locale/$lang"
  echo $i; 
  if test -f locale/$lang/messages.po; then
      XGETTEXT="$XGETTEXT -j" 
  fi
  $XGETTEXT *.html
done
